package com.ls.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ls.controller.customer.model.TimeModel;
import com.ls.controller.orderrecord.model.OrderRecordModel;
import com.ls.controller.orderrecord.model.QueryOrderRecordModel;
import com.ls.controller.template.model.QueryTemplateModel;
import com.ls.entity.OrderRecord;
import com.ls.utils.ResultData;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pengyu
 * @since 2024-06-28
 */
public interface IOrderRecordService extends IService<OrderRecord> {
    /** 查询订单记录分页列表 */
    ResultData pageListApp(OrderRecordModel model);
    /** 查询订单记录分页列表 */
    ResultData pageList(QueryOrderRecordModel model);
    /** 修改订单数据 */
    ResultData changeOrder(String orderNum, String orderNumber, LocalDateTime payTime);
    /** 退款 */
    ResultData refund(Long orderRecordId,BigDecimal money);
    BigDecimal sumTodayRecharge(LocalDateTime start, LocalDateTime end);

    /** 统计信息充值产品 */
    ResultData getDataPay(TimeModel model);
    /** 统计会员充值趋势 */
    ResultData getDataRecharge(TimeModel model);
    /** 统计会员增长趋势 */
    ResultData getDataMember(TimeModel model);
    /** 获取订单记录 */
    OrderRecord getOrderRecordByOrderNum(String orderNum);
    /** 订单过期 */
    Boolean orderExpire(String orderNum);
}
